package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    void insertDish(DishDTO dto);

    PageResult pageQuery(DishPageQueryDTO pageQueryDTO);


    void updateStatus(Integer status, Long id);

    Result getDishById(Long id);

    List<Dish> getDishListByCategoryId(Long categoryId);

    void updateDish(DishVO dishVO);

    Result deleteById(List<Long> ids);
    //public List<Dish> getDishById(Integer id);


    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);
}
